import request from "@/utils/request";
// 上传文件
export function uploadEmployees(data) {
  return request({
    url: "/doc/orderMeet/uploadFile",
    method: "post",
    data,
  });
}
// 获取群成员列表和消息
export function getList(params) {
  return request({
    url: "/doc/orderMeet/getInfo",
    method: "get",
    params,
  });
}
// 获取可以添加的成员列表
export function getMembers(params) {
  return request({
    url: "/doc/orderMeet/selectMembers",
    method: "get",
    params,
  });
}
// 分页查询聊天订单
export function getMessageList(params) {
  return request({
    url: "/doc/orderMeet/list",
    method: "get",
    params,
  });
}

//获取全部订单列表

export function getAllOrderNoList(params) {
  return request({
    url: "/doc/orderMeet/listByCancelTime",
    method: "get",
    params,
  });
}
// 删除添加成员
export function AddDelMembers(id, type, data) {
  return request({
    url: `/doc/orderMeet/updateMembers/${id}/${type}`,
    method: "post",
    data,
  });
}
// 获取订单详情
export function getDetaile(params) {
  return request({
    url: "financial/order/list",
    method: "get",
    params,
  });
}

// 获取姓名
export function getName(params) {
  return request({
    url: "/doc/orderMeet/getMembersInfo",
    method: "get",
    params,
  });
}


// 获取私聊会话列表
export function getImList(params) {
  return request({
    url: "/service/im/sessionList",
    method: "get",
    params,
  });
}

// 获取私聊会话列表
export function getImMsgList(params) {
  return request({
    url: "/service/im/selectMsg",
    method: "get",
    params,
  });
}
// 私聊上传文件
export function imUploadFile(data) {
  return request({
    url: "/service/im/uploadFile",
    method: "post",
    data,
  });
}

// 获取圈聊聊天记录
export function getOrderMessageListApi(params) {
  return request({
    url: "/doc/orderMeet/messageList",
    method: "get",
    params,
  });
}

// 获取圈聊聊天记录
export function getTrtcUserSigApi(params) {
  return request({
    url: "/trtc/genUserSig",
    method: "get",
    params,
  });
}


//添加im群聊成员（更新信息）
export function updateImSessionApi(data) {
  return request({
    url: `/service/im/updateImSession`,
    method: "put",
    data
  });
}
